package hfu.pm.entities;

import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;

public class Invitation {
	@Id
	Long id;
	
	Key<Room> room;
	Key<Account> sender;
	Key<Account> receiver;
	
	Date timestamp;
	
	public Invitation() {
		this.timestamp = new Date(System.currentTimeMillis());
	}

	public Key<Room> getRoom() {
		return room;
	}

	public void setRoom(Key<Room> room) {
		this.room = room;
	}

	public Key<Account> getReceiver() {
		return receiver;
	}

	public void setReceiver(Key<Account> receiver) {
		this.receiver = receiver;
	}

	public Key<Account> getSender() {
		return sender;
	}
	
	public void setSender(Key<Account> sender) {
		this.sender = sender;
	}
	
	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public Long getId() {
		return id;
	}
	
	public void setTimestamp() {
		this.timestamp = new Date(System.currentTimeMillis());
	}

}
